<script setup>
import { onBeforeMount, reactive } from 'vue';
import Probe from './Probe.vue';
const props = defineProps({
    container: {
        type: Object
    },
    containerIndex: {
        type: Number,
    },
    containerType: {
        type: String
    }
    
})
</script>

<template>
    <Probe :container-type="props.containerType" 
    :container-index="props.containerIndex" 
    style="margin-top: 10px;" 
    :probe="props.container.lifecycle.postStart" 
    probe-type="lifecycle.postStart" 
    title="容器创建时执行命令(PostStart)" 
    :life-cycle="true"
    @probe-changed-rollback="(value)=> {props.container.lifecycle.postStart=value}"></Probe>
    <!-- startup -->
    <Probe :container-type="props.containerType" 
    :container-index="props.containerIndex" 
    :probe="props.container.lifecycle.preStop" 
    probe-type="lifecycle.preStop" 
    style="margin-top: 10px;" 
    :life-cycle="true"
    title="容器退出前执行命令(PreStop)" 
    @probe-changed-rollback="(value)=> {props.container.lifecycle.preStop=value}"></Probe>
    
</template>

<style scoped>

</style>
